﻿/**
 * ...
 * @author Sergey Mamyan
 */

package tx.facebook.core;

import tx.facebook.methods.AdminMethods;
import tx.facebook.methods.AuthMethods;
import tx.facebook.methods.FQLMethods;

class Facebook {
	
	public static var REST_SERVER_URL:String	= "http://api.facebook.com/restserver.php";
	public static var API_KEY:String 			= "";
	public static var API_SECRET:String 		= "";
	public static var SESSION_KEY:String 		= null;
	
	public static function init(apiKey:String, apiSecret:String, ?sessionKey:String) {
		Facebook.API_KEY 	= apiKey;
		Facebook.API_SECRET = apiSecret;
		Facebook.SESSION_KEY = sessionKey;
	}
	
	public static var admin:AdminMethods = new AdminMethods();
	public static var auth:AuthMethods = new AuthMethods();
	public static var fql:FQLMethods = new FQLMethods();
	
}